package com.zis.system.dao;

import org.beetl.sql.core.annotatoin.SqlResource;
import org.beetl.sql.core.annotatoin.SqlStatement;
import org.beetl.sql.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import com.zis.system.model.RoleRes;

import java.util.List;

@Repository
@SqlResource(value = "system.roleRes")
public interface RoleResDao extends BaseMapper<RoleRes> {

    @SqlStatement(params = "roleId")
    int deleteResByRoleId(String roleId);

    @SqlStatement(params = "roleId")
    List<RoleRes> findByRoleId(String roleId);
}
